//
//  GLWelcome.m
//  QAQ打飞机
//
//  Created by admin on 15/8/28.
//  Copyright (c) 2015年 gl. All rights reserved.
//

#import "GLWelcome.h"

@implementation GLWelcome
-(instancetype)initWithFrame:(CGRect)frame
{
    self =[super initWithFrame:frame];
    if (self !=nil) {
        //1.背景
        UIImage *backImage =[UIImage imageNamed:@"imageView.bundle/plane1b_Compose.png"];
        UIImageView *backImageView =[[UIImageView alloc]initWithImage:backImage];
        [backImageView setFrame:CGRectMake(self.frame.size.width/2.0-backImage.size.width/2.0,self.frame.size.height/3.0,backImage.size.width, backImage.size.height)];
        [self addSubview:backImageView];
        //2.内容图片
        UIImage*logoImage =[UIImage imageNamed:@"imageView.bundle/letter2_peek.png"];
        UIImageView *logoImageView =[[UIImageView alloc]initWithImage:logoImage];
        [logoImageView setFrame:CGRectMake(self.frame.size.width/2.0-logoImage.size.width/2.0, backImageView.frame.origin.y+backImageView.frame.size.height+logoImage.size.height, logoImage.size.width, logoImage.size.height)];
        [self addSubview:logoImageView];
        
    }

    return self;
}


@end
